#!/usr/bin/python3
#! -*- coding:utf-8 -*-

import time


def runtime(func):
    def wrapper(*args, **kwargs):
        start = time.time()
        result = func(*args, **kwargs)
        end = time.time()
        print(f"{func.__name__} 运行了 {end - start} s.")

        return result
    return wrapper

